package com.atxuwei.yygh.order.service;

import com.atxuwei.yygh.model.order.OrderInfo;
import com.atxuwei.yygh.vo.order.OrderQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

public interface OrderService  extends IService<OrderInfo> {
    //生成挂号订单
    Long saveOrder(String scheduleId, Long patientId);
    //根据订单id查询订单详情
    OrderInfo getOrders(String orderId);
    //查询用户所有预约订单
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    //完成支付后，更新订单状态
    void updateOrder(Long orderId);

    //取消预约订单
    boolean cancelOrder(Long orderId);

    //获取当天就诊人预约订单
    void patientTips();
}
